package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.UserMsgDao;
import com.platform.entity.UserMsgEntity;
import com.platform.service.UserMsgService;

/**
 * 微信用户信息Service实现类
 *
 * @author LarkerJin
 * @email 277901879@qq.com
 * @date 2019-08-02 16:18:48
 */
@Service("userMsgService")
public class UserMsgService {
    @Autowired
    private UserMsgDao userMsgDao;

    public UserMsgEntity queryObject(Integer id) {
        return userMsgDao.queryObject(id);
    }

    public List<UserMsgEntity> queryList(Map<String, Object> map) {
        return userMsgDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return userMsgDao.queryTotal(map);
    }

    public int save(UserMsgEntity userMsg) {
        return userMsgDao.save(userMsg);
    }

    public int update(UserMsgEntity userMsg) {
        return userMsgDao.update(userMsg);
    }

    public int delete(Integer id) {
        return userMsgDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return userMsgDao.deleteBatch(ids);
    }
}
